//
//  ContinuousLandingViewController.m
//  YIJU2.0HD
//
//  Created by 张金国 on 16/5/24.
//  Copyright © 2016年 Mr.X. All rights reserved.
//

#import "ContinuousLandingViewController.h"
#import "Masonry.h"


@interface ContinuousLandingViewController ()


@property (nonatomic ,strong)UITextField   *textField;


@property (nonatomic ,copy)NSString         *text;



@end

@implementation ContinuousLandingViewController

#pragma mark - Life Circle

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    CGFloat maxH = MIN(480,80);
    CGFloat minW = MIN(480, 180);
    self.preferredContentSize = CGSizeMake(minW, maxH);
    
    [self  setupConstraints];
    
    [self initTextString];
}


- (void)initTextString {
    _text = @"项目连续签到7天";
    self.textField.text = _text;
    
    
}

- (void)setupConstraints {
    
    [self.textField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.view.mas_top).offset(10);
        make.left.equalTo(self.view.mas_left).offset(10);
        make.right.equalTo(self.view.mas_right).offset(-10);
        make.height.equalTo(70);
    }];
}

#pragma mark - getter
- (UITextField *)textField {
    if (!_textField) {
        _textField = [[UITextField alloc]init];
        _textField.enabled = NO;
        _textField.textAlignment = NSTextAlignmentCenter;
        [self.view addSubview:_textField];
    }
    return _textField;
}


@end
